import redis

r = redis.Redis(host='1.117.160.157', port=6379)
r.set('foo', 'bar')
print(r.get('foo'))